package com.fdb.efp.nls.service.dao;

import com.fdb.efp.nls.service.domain.WsApproveackConfirm;
import com.fdb.efp.nls.service.vo.WsApproveackConfirmVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * DAO Interface: 网商授信终审应答信息表
 * @author ligm
 * @date 2019-08-08 
 */
public interface WsApproveackConfirmDao {
	
	/**
	 * 新增数据 
     * @param inWsApproveackConfirmVo
	 * @return 
	 */
	public int insertWsApproveackConfirm(WsApproveackConfirm wsApproveackConfirm);

    /**
	 * 根据主键删除信息 
     * @param inWsApproveackConfirmVo
	 * @return 
	 */
	public int deleteByPk(WsApproveackConfirm wsApproveackConfirm);

    /**
	 * 根据主键更新信息 
     * @param inWsApproveackConfirmVo
	 * @return 
	 */    
	public int updateByPk(WsApproveackConfirm wsApproveackConfirm);

    /**
	 * 根据主键查询详情 
     * @param wsApproveackConfirm
	 * @return 
	 */
    public WsApproveackConfirm queryByPk(WsApproveackConfirm wsApproveackConfirm);

    /**
	 * 一级数据权限,默认查看当前用户对应的数据 
     * @param wsApproveackConfirm
	 * @return 
	 */
	public List<WsApproveackConfirm> queryAllByLevelOneByPage(WsApproveackConfirmVO wsApproveackConfirm);
	
    /**
	 * 二级数据权限,默认查看当前用户及所属机构对应的数据 
     * @param wsApproveackConfirm
	 * @return 
	 */
	public List<WsApproveackConfirm> queryAllByLevelTwoByPage(WsApproveackConfirmVO wsApproveackConfirm);
	
    /**
	 * 三级数据权限,默认查看当前用户所在机构及下属机构对应的数据 
     * @param wsApproveackConfirm
	 * @return 
	 */
	public List<WsApproveackConfirm> queryAllByLevelThreeByPage(WsApproveackConfirmVO wsApproveackConfirm);

    /**
	 * 四级数据权限,默认预留，便于后续自定义 
     * @param wsApproveackConfirm
	 * @return 
	 */
    public List<WsApproveackConfirm> queryAllByLevelFourByPage(WsApproveackConfirmVO wsApproveackConfirm);

    /**
	 * 五级数据权限,默认预留，便于后续自定义 
     * @param wsApproveackConfirm
	 * @return 
	 */
    public List<WsApproveackConfirm> queryAllByLevelFiveByPage(WsApproveackConfirmVO wsApproveackConfirm);

    WsApproveackConfirm queryByApplyNo(@Param("applyNo") String applyNo);
}
